﻿using Nest;

namespace Log.Api.LogModels
{
    /// <summary>
    /// 设备参数记录通用Model
    /// </summary>
    public class EquipmentParamLogModel : LogModelBase
    {
        /// <summary>
        /// 组织ID
        /// </summary>
        [Keyword]
        public string OrgId { get; set; }

        /// <summary>
        /// 工单号
        /// </summary>
        [Keyword]
        public string WorkCode { get; set; }

        /// <summary>
        /// 线体编号
        /// </summary>
        [Keyword]
        public string LineCode { get; set; }

        /// <summary>
        /// 线体名称
        /// </summary>
        [Keyword]
        public string LineName { get; set; }

        /// <summary>
        /// 工位编号
        /// </summary>
        [Keyword]
        public string WorkstageCode { get; set; }

        /// <summary>
        /// 设备号
        /// </summary>
        [Keyword]
        public string EquipmentCode { get; set; }

        /// <summary>
        /// 设备类型，如：老化设备
        /// </summary>
        [Keyword]
        public string EquipmentType { get; set; }

        /// <summary>
        /// 设备参数编码，英文名
        /// </summary>
        public string ParamCode { get; set; }

        /// <summary>
        /// 设备参数名称，如老化设备，参数关键字：电压、电流、功率因数、老化开始/结束时间、温度。。。
        /// </summary>
        public string ParamName { get; set; }

        /// <summary>
        /// 设备参数值
        /// </summary>
        public string ParamValue { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        public string OperateUserName { get; set; }
    }
}
